Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary iidm: distinction between null and empty string #2871

Merged
merged 5 commits into from
Jan 26, 2024

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Jan 24, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
Bug fix

What is the current behavior?
Empty string "" is written like a null String in the binary serialization.

What is the new behavior (if this is a feature change)?

  • Empty string "" is written by writing a zero length short in the binary serialization,
  • Null String is written by writing a -1 length short in the binary serialization.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup requested a review from olperr1 January 24, 2024 16:29
@olperr1 olperr1 changed the title Binary iidm: distiction between null and empty string Binary iidm: distinction between null and empty string Jan 26, 2024
Copy link

@olperr1 olperr1 merged commit 8441ed7 into main Jan 26, 2024
6 checks passed
@olperr1 olperr1 deleted the binary_null_empty_string branch January 26, 2024 13:08
olperr1 pushed a commit that referenced this pull request Jan 29, 2024
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
(cherry picked from commit 8441ed7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants